package com.vip8.recorder.service.service;

import com.vip8.recorder.api.model.dto.UserDTO;
import com.vip8.recorder.api.model.dto.VerificationCodeDTO;
import com.vip8.recorder.api.model.params.UserParams;

import java.util.List;

public interface UserService {

    VerificationCodeDTO generateCode(String countryCode, String phone) throws Exception;
    VerificationCodeDTO getCode(String countryCode, String phone);
    UserDTO loginByDevice(UserParams userParams);

    UserDTO loginByCode(String phone, String code);

    UserDTO login(String phone);

    Boolean logout(String phone);

    List<UserDTO> queryRecorderList(UserParams loginParam);

    UserDTO queryUserInfo(Long id);

    UserDTO queryUserInfo(String employeeId);

    List<String> querySubEmployeeList(Long userId);

    /**
     * 根据员工信息登录
     * @param userParams
     * @return
     */
    UserDTO loginByEmpInfo(UserParams userParams);
}
